function parseNumber(raw) {
  const str = String(raw).trim()
  const parsed = str ? Number(cleanNumericString(str)) : NaN
  return isNaN(parsed) ? null : parsed
}
function cleanNumericString(raw) {
  return raw.replace(/,/g, '')
}

export default {
  parseNumber,
}